##container start##
<div class="rk-feed-content">
    {{if hasEditor}}
    <div class="rk-avtive-publish clear">
        <span class="rk-edit-title" style="display: none;">{{ 'APPS_FEED_RECORD_TYPE' | i18n }}</span>
        <div class="rk-edit-acttype ui-select-buttonset" style="display: none;">
            <select class="js-act-type"></select>
        </div>
        <div class="rk-edit-frame">
            <textarea placeholder="{{ 'APPS_FEED_ADD_FOLLOW_RECORD' | i18n }}"></textarea>
        </div>
    </div>
    {{/if}}
    <div class="rk-feed-list">
        <div class="js-feed-tab">
            <ul class="clear">
            {{each tabs as value index}}
                <li url="{{value.url}}" update="{{value.update}}" nothingtpl="{{value.nothingtpl}}"><a href="#{{value.id}}">{{value.tabname}}</a></li>
            {{/each}}
            </ul>
            {{each tabs as value index}}
            <div id="{{value.id}}" class="js-feed-panel">
                {{if value.update == 'true'}}
                    <div class="js-feed-new hidden"><a href="javascript:;" class="new_feed">有<span class="nc_new_feed_count js-count">0</span>条新消息，点击查看</a></div>
                {{/if}}
                <div class="js-feed-flow" style="overflow:hidden;" prependnew="{{value.prependnew}}"></div>
                {{if value.appendmore == 'true'}}
                    <div class="js-feed-more" style="display:none;"><a href="javascript:;" class="feed_loading">{{ 'APPS_FEED_LOADING' | i18n}}</a></div>
                    <div class="feed-show-footer" style="display:none;">
                        <a class="return-index js-page" href="javascript:;">返回首页</a>
                        <div class="feed-paging">
                            <a href="javascript:;" class="page prev js-page">上一页</a>
                            <span class="list">第<span>1</span>页</span>
                            <a href="javascript:;" class="page next js-page">下一页</a>
                        </div>
                    </div>
                {{/if}}
            </div>
            {{/each}}
        </div>
        <a class="back_top js-gototop" style="display:none;" href="javascript:;" title="{{ 'APPS_FEED_TOP' | i18n }}">{{ 'APPS_FEED_TOP' | i18n }}</a>
    </div>
</div>
##container end##

##feed_message start##
<div class="feed-show-content clear" feedid="{{id}}" systemId="{{systemId}}" itemId="{{itemId}}">
    <div class="feed-act-timebox">
        <span class="feed-act-icon feed-group-class {{activityRecord.typeCategory | icons:'ar'}}"><i></i></span>
        <span class="feed-act-time">{{createdAt | timeago:serverTime}}</span>
    </div>
    <div class="feed-act-body">
        <a href="/final/user.action?id={{user.id}}" target="_blank"><img class="userpic" ucard="uid={{user.id}}" src="{{user.icon}}" alt="{{user.name}}" title="{{user.name}}"></a>
        <div class="feed-right-content">
            {{if deleteable}}
            <div class="feed-operate-area js-not-share">
                <span class="feed-drop-div">
                    <a href="javascript:;" class="arrow"><i></i></a>
                    <div class="drop_div">
                        <ul class="drop_menu">
                            <li><a href="javascript:;" act="delfeed">{{ 'CRM_CORE_DELETE' | i18n }}</a></li>
                        </ul>
                    </div>
                </span>
            </div>
            {{/if}}
            <div class="feed-show-info">
                <div class="feed-comefrom">
                    <a class="username" href="/final/user.action?uid={{user.id}}" ucard="uid={{user.id}}" target="_blank">{{user.name}}</a>
                    {{if activityRecord.systemId}}
                    <label class="feed-info-group"></label>
                    <p class="feed-group-name">
                        {{activityRecord.typeCategory | acttext: from.belongName,activityRecord.typeName}}
                        {{if pageBelongId != from.belongId || pageDetailId != from.id}}
                        {{if activityRecord.typeCategory != 11 && activityRecord.typeCategory != 13 && activityRecord.typeCategory != 14}}
                            {{ 'APPS_FEED_AT' | i18n }}{{from.belongName}}
                        {{/if}}：
                        <a href="{{group.type | pages:'/final/'}}?{{if group.type == 99}}belongId={{from.belongId}}&{{/if}}id={{if group.type < 2 }}{{group.id}}{{else}}{{from.id}}{{/if}}" target="_blank">{{from.name}}</a>
                        {{/if}}
                    </p>
                    {{/if}}
                </div>
                {{if systemId == 503}}
                <div class="feed-addition">
                    <table class="prise-info"><tbody><tr><td style="width:50px;"><span class="prise07"></span></td><td>{{#contentHtml}}</td></tr></tbody></table>
                </div>
                {{else if systemId == 504}}
                <div class="feed-addition">
                    <table class="prise-info"><tbody><tr><td style="width:50px;"><span class="prise0{{praise.logo}}"></span></td><td>{{#contentHtml}}</td></tr></tbody></table>
                </div>
                {{else if systemId == 505}}
                <div class="feed-addition">
                    <p>{{ 'APPS_FEED_ME_REPORT_A_BLOG' | i18n }}：<a href="/final/blog.action?id={{blog.id}}" target="_blank">{{blog.title}}</a></p>
                </div>
                <div class="feed-addition"><p>{{#contentHtml}}</p></div>
                {{else if systemId == 607 && activityRecord && activityRecord.typeCategory == -13 && activityRecord.contentJson}}
                <div class="feed-addition">
                    <p>{{activityRecord.contentJson.title}}时间:{{activityRecord.contentJson.startTime}}~{{activityRecord.contentJson.endTime}};{{activityRecord.contentJson.takesTime}}<br></p>
                    {{if activityRecord.contentJson.visitData.length}}
                    <div class="fmcc-flow-list">
                        <ul>
                        {{each activityRecord.contentJson.visitData as data index}}
                            <li><div class="node clear"><span class="node-time"></span><span class="node-name"><a target="_blank" href="/final/visit.action?id={{data.visitId}}">{{data.name}}<br></a></span></div></li>
                        {{/each}}
                        </ul>
                    </div>
                    {{/if}}
                </div>
                {{else}}
                    {{if activityRecord && activityRecord.systemId}}
                        <div class="feed-addition">
                            <p>{{#contentHtml}}</p>
                        </div>
                        {{if activityRecord.task}}
                        <div class="feed-addition">
                            <div class="feed-task-info">{{ 'SCRPT_TMPL_TASK_DETAIL_3' | i18n }}<span>{{activityRecord.task.createdAt | timeago:serverTime,true}}</span> 
                                {{ 'SCRPT_TMPL_SCHEDULE_DETAIL_3' | i18n }}<span><a href="/final/user.action?uid={{activityRecord.task.createdBy.id}}" ucard="uid={{activityRecord.task.createdBy.id}}" target="_blank">{{activityRecord.task.createdBy.name}}</a></span> 
                                {{if activityRecord.task.createdBy.isOwner}}{{ 'SCRPT_TMPL_CONVERT_LEAD_3' | i18n }}{{else}}分配{{/if}}
                            </div>
                        </div>
                        {{/if}}
                    {{else}}
                        <div class="feed-addition"><p>{{#contentHtml}}</p></div>
                    {{/if}}
                {{/if}}
                {{if answer && answer.id}}
                <div class="feed-addition">
                    <div class="answer-box">
                        <span class="title">{{ 'APPS_FEED_BEST_ANSWER' | i18n }}</span>
                        <p class="answer-content">{{#answer.contentHtml}}</p>
                        <div class="feed-show-tool">
                            <div class="feed-publish-info">
                                <a class="feed-publish-time" ucard="uid={{answer.user.id}}" href="/final/user.action?uid={{answer.user.id}}" target="_blank">{{answer.user.name}}</a>
                                <span>{{'APPS_FEED_ANSWER' | i18n}}</span>
                                <span>{{answer.createdAt | timeago:serverTime}}</span>
                            </div>
                        </div>
                    </div>
                </div>
                {{/if}}
                {{if attachment.type == 0}}
                <div class="feed-addition">
                    <div class="feed-show-file clear">
                        {{if attachment.file.preview}}
                            {{if attachment.file.swf == 'CONVERT_FAILED'}}
                            <div class="feed-file-class file-convert-failed"></div>
                            {{else if attachment.file.swf == ''}}
                            <div class="feed-file-class file-previewing"></div>
                            {{else}}
                            <div class="feed-file-class js-file-previewable" filename="{{attachment.file.name}}" swfpath="{{attachment.file.swf}}">{{if attachment.file.pic}}<img src="{{attachment.file.pic}}">{{/if}}</div>
                            {{/if}}
                        {{else}}
                        <div class="feed-file-class show-file-nopreview"></div>
                        {{/if}}
                        <div class="feed-file-info clear">
                            <div class="feed-file-area">
                                <span class="name"><a target="_blank" href="/final/file.action?id={{attachment.id}}">{{attachment.file.name}}</a></span>
                                <div class="feed-file-download"><a href="/json/sns_twitter_file/download.action?fileId={{attachment.id}}&checkCode={{attachment.file.tfcode}}">{{'APPS_FEED_DOWN_LOAD' | i18n}}</a></div>
                            </div>
                            <span class="file-des">{{attachment.descr}}</span>
                        </div>
                    </div>
                </div>
                {{else if attachment.type == 1}}
                <div class="feed-addition">
                    {{if attachment.images.length == 1}}
                        <div class="feed-show-img clear js-album-box">
                            <a class="js-album" href="{{attachment.images[0].url}}" lurl="{{attachment.images[0].lurl}}" surl="{{attachment.images[0].surl}}"><img src="{{attachment.images[0].surl}}"></a>
                        </div>
                    {{else}}
                        <ul class="feed-show-more-img js-album-box clear{{if attachment.images.length == 4}} show_twoline_img{{/if}}">
                            {{each attachment.images as value index}}
                            <li><a class="js-album" href="{{value.url}}" lurl="{{value.lurl}}" surl="{{value.surl}}"><img src="{{value.surl}}"></a></li>
                            {{/each}}
                        </ul>
                    {{/if}}
                </div>
                {{/if}}

                {{if activityRecord && activityRecord.file}}
                <div class="feed-addition">
                    <div class="feed-show-file clear">
                        {{if activityRecord.file.preview}}
                            {{if activityRecord.file.swf == 'CONVERT_FAILED'}}
                            <div class="feed-file-class file-convert-failed"></div>
                            {{else if activityRecord.file.swf == ''}}
                            <div class="feed-file-class file-previewing"></div>
                            {{else}}
                            <div class="feed-file-class js-file-previewable" filename="{{activityRecord.file.name}}" swfpath="{{activityRecord.file.swf}}">{{if activityRecord.file.pic}}<img src="{{activityRecord.file.pic}}">{{/if}}</div>
                            {{/if}}
                        {{else}}
                        <div class="feed-file-class show-file-nopreview"></div>
                        {{/if}}
                        <div class="feed-file-info clear">
                            <div class="feed-file-area">
                                <span class="name">
                                    {{if isFinal}}
                                        {{activityRecord.file.name}}
                                    {{else}}
                                        <a target="_blank" href="/final/feed.action?id={{id}}">{{activityRecord.file.name}}</a>
                                    {{/if}}
                                </span>
                                <div class="feed-file-download"><a href="{{activityRecord.file.url}}">{{'APPS_FEED_DOWN_LOAD' | i18n}}</a></div>
                            </div>
                            <span class="file-des">{{activityRecord.file.descr}}</span>
                        </div>
                    </div>
                </div>
                {{/if}}
                {{if activityRecord && activityRecord.images}}
                <div class="feed-addition">
                    {{if activityRecord.images.length == 1}}
                        <div class="feed-show-img clear js-album-box">
                            <a class="js-album" href="{{activityRecord.images[0].url}}" lurl="{{activityRecord.images[0].lurl}}" surl="{{activityRecord.images[0].surl}}"><img src="{{activityRecord.images[0].surl}}"></a>
                        </div>
                    {{else}}
                        <ul class="feed-show-more-img js-album-box clear{{if activityRecord.images.length == 4}} show_twoline_img{{/if}}">
                            {{each activityRecord.images as value index}}
                            <li><a class="js-album" href="{{value.url}}" lurl="{{value.lurl}}" surl="{{value.surl}}"><img src="{{value.surl}}"></a></li>
                            {{/each}}
                        </ul>
                    {{/if}}
                </div>
                {{/if}}

                {{if sound.size}}
                <div class="feed-addition">
                    <div class="comment-sound-container">
                        <span title="{{'APPS_FEED_CLICK_PLAY' | i18n}}" class="item-player itme-player-active">
                            <span class="item-player-inner"><span class="item-player-length ">{{#sound.duration}}"</span></span>
                            <span class="item-player-btn"></span>
                            <span class="item-player-corner"></span>
                        </span>
                        <audio class="hidden js-audio"></audio>
                    </div>
                </div>
                {{/if}}
                {{if location.latitude || location.longitude || location.name}}
                <div class="feed-addition">
                    <div class="feed-show-position">
                        <a href="/bmap/preview-map.action?decorator=gridJson&confirm=true&longitude={{location.longitude}}&latitude={{location.latitude}}" target="_blank" title="{{'APPS_FEED_SEE_MAP' | i18n}}">
                            <i></i>
                            <span>{{location.name}}</span>
                        </a>
                    </div>
                </div>
                {{/if}}

                <div class="feed-show-tool">
                    <div class="feed-publish-info">
                        {{if source == 1}}
                        <span>{{'APPS_FEED_COME_FROM' | i18n}}</span><span>Android{{'APPS_FEED_CLIENT' | i18n}}</span>
                        {{else if source == 2}}
                        <span>{{'APPS_FEED_COME_FROM' | i18n}}</span><span>iPhone{{'APPS_FEED_CLIENT' | i18n}}</span>
                        {{/if}}
                    </div>
                    <ul class="feed-tool-list js-not-share">
                        {{if likeable}}
                        <li class="js-feed-like-cont"><a href="javascript:;" title="{{'APPS_FEED_ZAMBIA' | i18n}}" class="js-feed-like feed-support {{if status.like}}feed-has-support{{/if}}"><i></i><span class="count js-count">{{if count.like}}{{count.like}}{{/if}}</span></a>
                            <div class="support-tooltip hidden">
                                <div class="support-tooltip-content">
                                    <div class="support-user"><ul class="user-list"></ul></div>
                                    <div class="arrow-top-wrap"></div>
                                </div>
                            </div>
                        </li>
                        {{/if}}
                        {{if favoriteable}}
                        <li><a href="javascript:;" class="js-feed-favor{{if status.favorite}} js-finished"><span>{{'APPS_FEED_ALREADY_COLLECTION' | i18n}}</span>{{else}}"><span>{{'APPS_FEED_COLLECTION' | i18n}}</span>{{/if}}<span class="count js-count">{{if count.favorite}}{{count.favorite}}{{/if}}</span></a></li>
                        {{/if}}
                        {{if shareable}}
                        <li><a href="javascript:;" systemId="{{systemId}}" systemItemId="{{attachment.id}}" class="js-feed-share{{if status.share}} js-finished"><span>{{'APPS_FEED_ALREADY_SHARE' | i18n}}</span>{{else}}"><span>{{'APPS_FEED_SHARE' | i18n}}</span>{{/if}}</a></li>
                        {{else if forwardable}}
                        <li><a href="javascript:;" class="js-feed-forward{{if status.forward}} js-finished"><span>{{'APPS_FEED_ALREADY_FORWARD' | i18n}}</span>{{else}}"><span>{{'APPS_FEED_FORWARD' | i18n}}</span>{{/if}}<span class="count">{{if count.forward}}{{count.forward}}{{/if}}</span></a></li>
                        {{/if}}
                        <li><a href="javascript:;" class="js-feed-comment" title="{{'APPS_FEED_COMMENT' | i18n}}"><i class="feed-icon-comment"></i><span>{{if count.comment}}{{count.comment}}{{/if}}</span></a></li>
                    </ul>
                </div>
                <div class="feed-addition js-feed-topic {{if topicList.length < 1}}hidden{{/if}}">
                    <div class="rk-edit-bottom clear">
                        <div class="rk-topic rk-feed-topic rk-feed-edit clear">
                            <span class="hashtags"></span>
                            <ul class="rk-topic-show">
                                {{each topicList as value index}}
                                <li ftid={{value.id}} topic="{{value.content}}"><span class="sharp">#</span><a class="topic-link" href="/search.action?parentTabName=topic&keyword={{value.content}}" target="_blank"><span class="topic-name">{{value.content}}</span></a><a href="javascript:;" class="topic-delete"></a></li>
                                {{/each}}
                            </ul>
                            <ul class="rk-topic-add js-not-share">
                                <li><input type="text" value="" class="ui-autocomplete-input"></li>
                                <li><a class="pg-btn-dustyblue" href="javascript:;">{{'APPS_FEED_ADD' | i18n}}</a></li>
                            </ul>
                            <a href="javascript:;" class="js-not-share rk-topic-dit rk-toppic-complete">{{'APPS_FEED_FINISH' | i18n}}</a>
                            <a href="javascript:;" class="js-not-share rk-topic-dit rk-toppic-edit">{{'APPS_FEED_EDIT' | i18n}}</a>
                        </div>
                    </div>
                </div>
                <div class="feed-right-bottom clear {{if commentList.length==0}}hidden{{/if}} js-not-share">
                    <div class="feed-comment clear">
                        <div class="feed-comment-publish clear hidden">
                            <div class="feed-publisher"><div class="feed-publisher-inner"><textarea class="js-comment-ta" rows="1" cols="1" placeholder="{{'APPS_FEED_QUICK_REPLY' | i18n}}"></textarea></div></div>
                            <div class="feed-publish-button"><a href="javascript:;" class="js-comment-btn pg-btn-blue">{{'APPS_FEED_REPLY' | i18n}}</a></div>
                        </div>
                        <div class="feed-show-comment">
                            {{each commentList as value index}}
                                <div class="feed-comment-item clear" commentid="{{value.id}}">
                                    <a href="/final/user.action?id={{value.user.id}}" target="_blank" class="avatar" ucard="uid={{value.user.id}}"><img src="{{value.user.icon}}"></a>
                                    <div class="feed-right-content">
                                        <div class="feed-comment-text">
                                            <span class="name"><a href="/final/user.action?id={{value.user.id}}" target="_blank" ucard="uid={{value.user.id}}">{{value.user.name}}：</a></span>
                                            <span>{{#value.contentHtml}}</span>
                                        </div>
                                        <a class="feed-reply js-comment-reply" href="javascript:;" atname="@{{value.user.name}} ">{{'APPS_FEED_REPLY' | i18n}}</a>
                                        {{if value.user.isOwner}}
                                        <a class="feed-delete js-comment-del" href="javascript:;">{{'CRM_CORE_DELETE' | i18n}}</a>
                                        {{/if}}
                                        <span class="feed-comment-time">{{value.createdAt | timeago:value.serverTime}}</span>
                                    </div>
                                </div>
                            {{/each}}
                            {{if count.comment > 2}}
                                <a class="feed-more-link" href="javascript:;">{{ 'APPS_FEED_SEE_MORE' | i18n }} {{count.comment-2}} {{ 'APPS_FEED_SEE_MORE_REPLY' | i18n}}&gt;&gt;</a>
                            {{/if}}
                        </div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>
</div>
##feed_message end##

##feed_activity_flow start##
<div class="feed-show-content clear" feedid="{{id}}" systemId="{{systemId}}" itemId="{{itemId}}">
    <div class="feed-act-timebox">
        <span class="feed-group-class feed-actflow-icon"></span>
        <div class="feed-act-con">
            <span class="feed-actflow-time">{{createdAt | timeago:serverTime}}</span>
            <a class="username" href="/final/user.action?uid={{user.id}}" target="_blank" ucard="uid={{user.id}}">{{user.name}}</a>
            {{#contentHtml}}
        </div>
    </div>
</div>
##feed_activity_flow end##

##feed_nothing start##
<div class="default_page"><div class="ico"></div><p>{{'APPS_FEED_NO_FEEDS' | i18n}}</p></div>
##feed_nothing end##

##feed_nothing_me start##
<div class="default_page"><div class="ico"></div><p>{{'APPS_FEED_NO_FEEDS_TO_COLLEAGUE' | i18n}}</p></div>
##feed_nothing_me end##

##feed_nothing_all start##
<div class="default_page"><div class="ico"></div><p>{{'APPS_FEED_NO_FEEDS_ADD_USERS' | i18n}}</p></div>
##feed_nothing_all end##

##feed_nothing_favor start##
<div class="default_page"><div class="ico"></div><p>{{'APPS_FEED_NO_FEEDS_TO_COLLECTION' | i18n}}</p></div>
##feed_nothing_favor end##